import Cookies from 'js-cookie'
import { CookieAttributes } from 'js-cookie'

export function setCookies(key: string, value: string, options?: CookieAttributes) {
  Cookies.set(key, value, { ...options })
}

export function getCookies(key: string): string | undefined {
  return Cookies.get(key)
}

export function removeCookies(key: string) {
  Cookies.remove(key)
}